package com.twotiger.and.activity.base;

import com.twotiger.and.view.ToggleButton.OnToggleChanged;

/**
 * 
 * @Description: TODO(这里描述这个类的作用) 
 * @Author douxy
 * @Date 2015年8月15日 下午2:47:45
 */
public class BaseListItem extends AbastractListItem {

    public AbstractListItemLayout itemLayout = new BaseListItemLayout();

    public String key;
    public String desc;
    public int icon;
    public String val;
    public int keyColor;
    public int descColor;
    public int valColor;
    public int keyH;
    public int descH;

    /**是否显示base_list_item_toggleBtn
     * SettingPage
     * */
    public OnToggleChanged onToggleChanged;
    public boolean toggleChangedIsOn = false;

    public BaseListItem() {
    }

    public BaseListItem(String key, int icon, String desc, boolean nextBlock, OnClick onclick) {
        this.key = key;
        this.desc = desc;
        this.icon = icon;
        this.nextBlock = nextBlock;
        this.onclick = onclick;
    }

    public BaseListItem(String key, int icon, boolean nextBlock, OnClick onclick) {
        this.key = key;
        this.icon = icon;
        this.nextBlock = nextBlock;
        this.onclick = onclick;
    }

    public BaseListItem(String key, String val, boolean nextBlock, OnClick onclick) {
        this.key = key;
        this.val = val;
        this.nextBlock = nextBlock;
        this.onclick = onclick;
    }

    public BaseListItem(String key, boolean nextBlock, OnClick onclick, int keyColor) {
        this.key = key;
        this.nextBlock = nextBlock;
        this.onclick = onclick;
        this.keyColor = keyColor;
    }

}
